<template>
  <Header />
  <el-container style="height: 100%">
    <el-aside>
      <pageAsideForAdmin />
    </el-aside>
    <el-main>
      <router-view />
      <el-button class="logOut" @click="init()" v-show="user !== {}">
        <router-link to="/">
          <span style="text-decoration: underline; font-size: 20px"
            >--->log out</span
          >
        </router-link>
      </el-button>
    </el-main>
  </el-container>
</template>
<script>
import Header from '../../components/pageHeader.vue'
import pageAsideForAdmin from '../../components/pageAside/pageAsideForAdmin.vue'
import userManage from './userManage.vue'

export default {
  components: {
    Header,
    pageAsideForAdmin,
    userManage,
  },
  name: 'admin',
}
</script>

<style lang="less" scoped>
.el-aside {
  color: '#545c64';
  display: block;
  position: absolute;
  left: 0;
  top: 60px;
  bottom: 0;
  //   max-width:200px;
  //   overflow-y: scroll;
}
.el-main {
  display: block;
  position: absolute;
  left: 300px;
  top: 60px;
  bottom: 0;
  right: 0;
}
.logOut {
  position: relative;
  float: right;
  border: none !important;
  background-color: transparent;
  margin-top: 5px;
}
</style>
